﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Artist>" %>
<%@ Import Namespace="WebUI.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Model.ArtistName %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2><%: Model.ArtistName %></h2>

<% using (Html.BeginForm("Edit", "Artist", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Reciters Info</legend>
         <%= Html.Hidden("referringurl") %>
        <%: Html.HiddenFor(model => model.ArtistID) %>

          <div class="editor-label">
            <%: Html.Label("") %>
        </div>
        <div class="editor-field">
            <%= Html.Image(Model.LargePicture, new { width="320", height="460" })%>
        </div>      

         <% Html.RenderPartial("UcPicture"); %>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ArtistName) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ArtistName) %>
            <%: Html.ValidationMessageFor(model => model.ArtistName) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ArtistDesc) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ArtistDesc) %>
            <%: Html.ValidationMessageFor(model => model.ArtistDesc) %>
        </div>

        

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
<% } %>



<div>
    <a href="<%: ViewData["referringUrl"].ToString() %>">Back to List</a>
</div>

</asp:Content>

